<?php

namespace App\Console\Commands\Mybank;

use App\Kuafu\Mybank\Service\MybankService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class CreateBatchCapitalClearingCommand extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'mybank:create-batch-capital-clearing';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '账户对账+批次创建';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        Log::info('网商银行账户对账-批次创建start：');

        //先查询网商银行未分配账单金额
        MybankService::createBatchMatchBillRecord();
        Log::info('网商银行账户对账-批次创建end：');
    }

}
